package com.nowcode.community.service;

import com.nowcode.community.entity.DiscussPost;

import java.util.List;

/**
 * ClassName: DiscussPostService
 * Package: com.nowcode.community.service
 * Description:
 *
 * @Author: 信
 * @Create: 2024/1/21 - 15:35
 */
public interface DiscussPostService {

    List<DiscussPost> findDiscussPosts(int userId, int offset, int limit);

    int findDiscussPostRows(int userId);

    int addDiscussPost(DiscussPost post);

    DiscussPost findDiscussPostById(int discussPostId);

    int updateCommentCount(int id, int commentCount);

    void updateType(int id, int i);

    void updateStatus(int id, int i);
}
